
/**
** \file       exec_until.c
**
** \brief      this function execute until rule
**
** \author     Ben M'rad Hanna, Laterem Hamza, Boillot Ulysse, De Olivera
**             Guillaume and Nguyen Viet Dung
**
** \version    0.8
**
** \date       26 November 2010
**
*/

#include "execution.h"

int     exec_until(s_ruleuntil  *node)
{
  if (node->in_until != NULL && node->in_do != NULL)
  {
    if (exec_cmpdlist(node->in_until) == 0)
      return (exec_dogroup(node->in_do));
    return (1);
  }
  else
    return (1);
}
